import request from "@/utils/request.js";

/**
 * 商品维度-商品查询
 * @param {Object} data
 */
export function getGoodsDim(data) {
  return request({
    url: "/jy-business/control/scope/getProductPageByProductScope",
    method: "post",
    data
  })
}
/**
 * 商品维度-门店查询
 * @param {Object} data
 */
export function getStoreDim(data) {
  return request({
    url: "/jy-business/control/scope/getStorePageByProductScope",
    method: "post",
    data
  })
}
/**
 * 门店维度-商品查询
 * @param {Object} data
 */
export function getProductByStore(data) {
  return request({
    url: "/jy-business/control/scope/getProductPageByStoreScope",
    method: "post",
    data
  })
}
/**
 * 门店维度-门店查询
 * @param {Object} data
 */
export function getStoreByProduct(data) {
  return request({
    url: "/jy-business/control/scope/getStoretPageByStoreScope",
    method: "post",
    data
  })
}
/**
 * 修改销售状态
 * @param {Object} data
 */
export function updateSaleStatus(data) {
  return request({
    url: "/jy-business/control/scope/changeSaleState",
    method: "post",
    data
  })
}
/**
 * 门店信息展示
 * @param {Object} params
 */
export function getStoreInfo(params) {
  return request({
    url: "/jy-business/control/scope/getStoreInfo",
    method: "get",
    params
  })
}